package io.nutz.nutzsite.module.sys.models;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.EL;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Prev;
import org.nutz.dao.entity.annotation.Table;
									
/**
 * 推送消息表 sys_msg
 * 
 * @author lrw
 * @date 2020-03-27
 */
@Table("sys_msg")
public class Msg implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Name
	@Prev(els = {@EL("uuid()")})
		@Column("id")
	@Comment("ID")
	@ColDefine(type = ColType.VARCHAR, width = 64)
	
	private String id;

			/** 消息类型 */
	@Column("type")
	@Comment("消息类型")
	private String type;

			/** 消息标题 */
	@Column("title")
	@Comment("消息标题")
	private String title;

			/** 消息内容 */
	@Column("note")
	@Comment("消息内容")
	private String note;

			/** 消息URL */
	@Column("url")
	@Comment("消息URL")
	private String url;

			/** 发送时间 */
	@Column("sendAt")
	@Comment("发送时间")
	private Long sendAt;

			/** 操作人 */
	@Column("opBy")
	@Comment("操作人")
	private String opBy;

			/** 操作时间 */
	@Column("opAt")
	@Comment("操作时间")
	private Long opAt;

			/** 删除标记 */
	@Column("delFlag")
	@Comment("删除标记")
	private Integer delFlag;

	
	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}

	public void setType(String type) 
	{
		this.type = type;
	}

	public String getType() 
	{
		return type;
	}

	public void setTitle(String title) 
	{
		this.title = title;
	}

	public String getTitle() 
	{
		return title;
	}

	public void setNote(String note) 
	{
		this.note = note;
	}

	public String getNote() 
	{
		return note;
	}

	public void setUrl(String url) 
	{
		this.url = url;
	}

	public String getUrl() 
	{
		return url;
	}

	public void setSendAt(Long sendAt) 
	{
		this.sendAt = sendAt;
	}

	public Long getSendAt() 
	{
		return sendAt;
	}

	public void setOpBy(String opBy) 
	{
		this.opBy = opBy;
	}

	public String getOpBy() 
	{
		return opBy;
	}

	public void setOpAt(Long opAt) 
	{
		this.opAt = opAt;
	}

	public Long getOpAt() 
	{
		return opAt;
	}

	public void setDelFlag(Integer delFlag) 
	{
		this.delFlag = delFlag;
	}

	public Integer getDelFlag() 
	{
		return delFlag;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("title", getTitle())
            .append("note", getNote())
            .append("url", getUrl())
            .append("sendAt", getSendAt())
            .append("opBy", getOpBy())
            .append("opAt", getOpAt())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
